import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './pages/index.vue'

import router from './router'


import {
    Button,
    Circle,
    Checkbox,
    NavBar,
    Form,
    Field,
    CellGroup,
    Uploader,
    RadioGroup,
    Radio,
    DatePicker,
    Popup,
    Swipe, 
    SwipeItem,
    Grid, 
    GridItem,
    Icon,
    Tab, 
    Tabs,
    Card,
    List,
    // SwipeCell,
    PullRefresh,
    Area,
    Cascader, 
    Badge,
    Tag,
    Search,
    ShareSheet 
} from 'vant';
import NutUI from '@nutui/nutui';
import "@nutui/nutui/dist/style.css";
import "@nutui/icons-vue/dist/style_iconfont.css";

import 'vant/lib/index.css';

import './styles/index.less'

createApp(App)
    .use(createPinia())
    .use(router)
    .use(Button)
    .use(Circle)
    .use(Checkbox)
    .use(NavBar)
    .use(Form)
    .use(Field)
    .use(CellGroup)
    .use(Uploader)
    .use(RadioGroup)
    .use(Radio)
    .use(DatePicker)
    .use(Popup)
    .use(Swipe)
    .use(SwipeItem)
    .use(Grid)
    .use(GridItem)
    .use(Icon)
    .use(Tab)
    .use(Tabs)
    .use(Card)
    .use(List)
    .use(PullRefresh)
    // .use(SwipeCell)
    .use(Area)
    .use(Cascader)
    .use(Badge)
    .use( Tag)
    .use(NutUI)
    .use(Search)
    .use(ShareSheet)
    .mount('#root')